Application of zeroth law of thermodynamics